<!--导航栏-->
<div class="row-fluid">
    <div class="navbar no-margin">
        <div class="navbar-inner">
            <ul class="breadcrumb">
                <i class="icon-chevron-left hide-sidebar"><a href='#' title="Hide Sidebar" rel='tooltip'>&nbsp;</a></i>
                <i class="icon-chevron-right show-sidebar" style="display:none;"><a href='#' title="Show Sidebar"
                                                                                    rel='tooltip'>&nbsp;</a></i>
                <li>
                    <a href="#/smart">首页</a>
                </li>
                <li>
                    <a href="#/smart/query/smart_query_list">计量概览</a>
                </li>
                <li class="active">计量详情</li>
            </ul>
        </div>
    </div>
</div>

<style type="text/css">
    table tr td{
        border: none;
    }
</style>

<div class="container-fluid">
    <div style="margin: 10px">
        <div style="float:right;">
<!--            <a href="https://bdp.58.com/bi/index#/dataMapReveal"> <u>智慧树</u> </a>-->
            <a href="#/smart/query/smart_query_add/id/{{vm.p.id}}" style="padding-left:10px;"><u>修改查询SQL</u></a>
        </div>
        <h4 class="sub-header" style="display:inline-block">基础信息</h4>
        <div style="margin: 10px 20px 20px 0">
            <table id="tbl" border=0 width="80%" frame=void >
                <tr>
                    <td width="400px" colspan="2">
                        归属：{{vm.d.project}} {{vm.d.app}}
                        负责人：{{vm.d.owner}}
                    </td>
                </tr>
                <tr>
                    <td colspan="4">描述(comment)：{{vm.d.queryComment}} </td>
                </tr>
                <tr>
                    <td colspan="4">查询SQL(以及参数）:
                        <textarea readonly class="form-control" name="queryCmd"  ng-model="vm.d.queryCmd" style="height: 200px; width: 1080px;font-size:12px;background-color: white;"></textarea>
                        <textarea readonly class="form-control" name="queryParam"  ng-model="vm.d.queryParam" style="height: 70px;width:1080px;font-size:12px;background-color: white;" required></textarea>
                    </td>
                </tr>
            </table>
            <div style="margin: 10px 20px 20px 0; float:right;">
                <button class="btn btn-primary" style="display: inline-block;" ng-click="query()">获取数据</button>
            </div>
        </div>

        <div class="row">
            <div class="col-sm-12 col-md-12 main" style="float: right">
                <label style="float: right">耗时：{{vm.result.ms}}ms</label>
                <h4 class="sub-header" style="display:inline-block">结果信息</h4>
            </div>
        </div>
    </div>
</div>
